package cn.agiledata.bank.transaction.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;

/**
 * 账户间支付交易Form
 * 
 * @author maxianbo
 * 
 */
public class InnerPayForm extends InnerTransactForm {
    private long debitSubAccountId;

    private String credit;

    private String password;

    public InnerPayForm() {
        this.debitSubAccountId = 0;
        this.credit = "";
        this.password = "";
    }

    public long getDebitSubAccountId() {
        return this.debitSubAccountId;
    }

    public void setDebitSubAccountId(long debitSubAccountId) {
        this.debitSubAccountId = debitSubAccountId;
    }

    public String getCredit() {
        return this.credit == null ? null : this.credit.toLowerCase();
    }

    public void setCredit(String credit) {
        this.credit = credit == null ? null : credit.toLowerCase();
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        super.reset(mapping, request);
        if (isResetable()) {
            this.debitSubAccountId = 0;
            this.credit = "";
            this.password = "";
        }
    }
}
